package cn.fjsay.java.demo2;

class AverageCalculator implements ComputerAverage {
    @Override
    public double average(double score[]) {
        double sum = 0;
        for (double s : score) {
            sum += s;
        }
        return sum / score.length;
    }
}